package com.chance.cc.crawler.development.command.schedule.xcar;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.xcar.XcarSeriesPublicPraiseCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.schedule.CrawlerJobScheduleCommand;

/**
 * @author bx
 * @date 2020/12/7 0007 10:23
 */
public class XCarSeriesPublicPraiseCrawlerJobSchedule {


    private static CrawlerJobScheduleCommand crawlerJobScheduleCommand =
            new CrawlerJobScheduleCommand("192.168.1.215",9589);

    public static final String device_name = "crawler_dev_host";


    public static void main(String[] args) {
        CrawlerJob crawlerJob = XcarSeriesPublicPraiseCrawlerScheduleJob.xcarCwalerJob();
        publishXCarCrawlerJobInfo(crawlerJob.generateCrawlerTriggerKey());
    }


    public static void publishXCarCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.deleteCrawlerJob(triggerKey,device_name);
    }


}
